package com.huluspace.basic;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController // 标记为REST控制器，返回JSON或字符串
public class HelloController {
  @GetMapping("/") // 监听根路径 "/"
  public String hello() {
    return "Hello, World!";
  }
}
